package com.wwg.cms.bo.entity;
import com.wwg.cms.bo.*;
/**
 *create auto on 2010-8-31 16:43:18
 *create by wwl
 * userlog
 * 
 * @hibernate.class table="userlog" *  mutable="true" 
 *  proxy="com.wwg.cms.bo.entity.UserlogEntity" 
 */
public class UserlogEntity implements Userlog{

	 private Long id;
	 private User userId;
	 private Long actionId;
	 private String content;
	 private String tableName;
	 private Long actionToId;
	/**
	 *
 	 *
	 * @hibernate.id  column="id"
	 *  unsaved-value="null"
 	 *  generator-class="native"
	 * @return Long 
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id){
		this.id = id;
	}
	/**
	 *
 	 *
	 * @hibernate.many-to-one  column="user_id"  
	 *      class = "com.wwg.cms.bo.entity.UserEntity"
	 * @return User 
	 */
	public User getUserId() {
		return userId;
	}
	public void setUserId(User userId){
		this.userId = userId;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="action_id"
	 * @return Long 
	 */
	public Long getActionId() {
		return actionId;
	}
	public void setActionId(Long actionId){
		this.actionId = actionId;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="content"
	 * @return String 
	 */
	public String getContent() {
		return content;
	}
	public void setContent(String content){
		this.content = content;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="table_name"
	 * @return String 
	 */
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName){
		this.tableName = tableName;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="action_to_Id"
	 * @return Long 
	 */
	public Long getActionToId() {
		return actionToId;
	}
	public void setActionToId(Long actionToId){
		this.actionToId = actionToId;
	}
  @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserlogEntity that = (UserlogEntity) o;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? UserlogEntity.class.hashCode()+id.hashCode() : UserlogEntity.class.hashCode();
    }


}


